package com.code.user.model.po;

import com.code.commons.model.po.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 用户实名认证PO及持久层对象
 *
 * @author tangyifei
 * @since 2020年2月11日09:19:42
 */
@ApiModel("用户实名认证PO及持久层对象")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class UserCertification extends BasePO<String> {

    private static final long serialVersionUID = -1667798384257623458L;

    @ApiModelProperty(value = "主键 非必填", example = "1")
    @Id
    @Length(min = 1, max = 64)
    private String id;

    @ApiModelProperty(value = "用户主键 必填", example = "1")
    @Length(min = 1, max = 64)
    private String userId;

    @ApiModelProperty(value = "国籍 非必填", example = "中国")
    private String country;

    @ApiModelProperty(value = "1身份证 2护照 非必填", example = "1")
    private Integer certificationType;

    @ApiModelProperty(value = "证件号码 非必填", example = "1")
    private String certificationNumber;

    @ApiModelProperty(value = "证件正面照片 非必填", example = "1")
    private String certificationFrontPhoto;

    @ApiModelProperty(value = "证件反面照片 非必填", example = "1")
    private String certificationBackPhoto;

    @ApiModelProperty(value = "姓名 非必填", example = "1")
    private String name;

    @ApiModelProperty(value = "基础证件认证状态 0未认证 1认证中 2认证成功 3认证失败 非必填", example = "0")
    private Integer baseAuthState;

    @ApiModelProperty(value = "高级证件认证状态 0未认证 1认证中 2认证成功 3认证失败 非必填", example = "0")
    private Integer highAuthState;

    @ApiModelProperty(value = "认证时间")
    private Date authTime;

    @ApiModelProperty(value = "用户账号")
    private String userAccount;

}
